﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.ObjectModel;
using System.Collections.Generic;
using System.Diagnostics;
using FlickrXplorer.Web.ViewData;

namespace FlickrXplorer.Web.ViewData
{
  /// <summary>
  /// A collection of <see cref="Bookmark" text="bookmarks." />
  /// </summary>                                                                         
  [DebuggerDisplay("{this.Count} bookmarks.")]
  public class BookmarkCollection : Collection<Bookmark>
  {
    /// <summary>
    /// Adds a collection of bookmarks to the <see cref="FlickrXplorer.Web.ViewData.BookmarkCollection" text="BookmarkCollection" />.
    /// </summary>
    /// <param name="bookmarks">The IEnumerable&lt;Bookmark&gt; list
    ///                         of bookmarks to add.</param>                                                                        
    public void AddRange(IEnumerable<Bookmark> bookmarks)
    {
      foreach (Bookmark b in bookmarks)
      {
        this.Add(b);
      }
    }
  }
}
